<template>
  <headerXX :name="title"></headerXX>
  <div class="paddingZY10 pull-refresh">
    <text class="list_item_title">一般项目检查</text>
    <van-cell-group>
      <van-cell
        title="身高"
        :value="`${selfData.bmiList.height + 'cm' || '暂无数据'}`"
      />
      <van-cell
        title="体重"
        :value="`${selfData.bmiList.weight + 'KG' || '暂无数据'}`"
      />
      <van-cell
        title="体温"
        :value="`${selfData.tempList.tempv + '°C' || '暂无数据'}`"
      />
      <van-cell
        title="血糖"
        :value="`${selfData.bsList.value + 'mg/dL' || '暂无数据'}`"
      />
      <van-cell
        title="血压"
        :value="`${selfData.bpList.sbp + 'mm/Hg' || '暂无数据'}`"
      />
      <van-cell title="血氧" :value="`${selfData.boList.bpm || '暂无数据'}`" />
    </van-cell-group>
  </div>
</template>

<script setup>
import headerXX from "../../components/title.vue";
import { ref, onMounted } from "vue";
import { useRoute } from "vue-router";
const title = ref("分析详情");
let route = useRoute();
let selfData = ref(JSON.parse(decodeURIComponent(route.query.val)));
</script>

<style lang="scss" scoped>
.paddingZY10 {
  box-sizing: border-box;
}
.list_item_title {
  font-size: 16px;
  font-weight: 500;
}
</style>